<?php
============Start===========
CityPosition
$data['CityListAd'] = $listsCopy->unique('ip')->groupBy('city');
foreach ($data['CityListAd'] as $key => $value) {
 $data['CityListAd2'][$key]=count($value);
}
$data['CityListAd'] = $data['CityListAd2'];
    arsort($data['CityListAd']);
===
<div class="row">
  <div class="col-xs-12">
    <div class="box">
      <!-- /.box-header -->
      <div class="box-body">
        <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap"><div class="row"><div class="col-sm-6"></div><div class="col-sm-6"></div></div><div class="row"><div class="col-sm-12"><table id="example2" class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
          <thead>
          <tr>
            <td>CityPosition</td>
            <td>Sum</td>
          </tr>
          </thead>
          <tbody>
            @foreach($CityListAd as $key=>$obj)
              <tr role="row" class="odd">      
                  <td>{{$key}}</td>
                  <td>{{ $obj }}</td>
              </tr>
            @endforeach
          </tbody>
          <tfoot>
          </tfoot>
        </table></div></div></div>
      </div>
      <!-- /.box-body -->
    </div>
    <!-- /.box -->
  </div>
  <!-- /.col -->
</div>
<!-- /.row -->
============End===========
